<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table border="1" width="50%" cellpadding="0">
        <thead>
        <tr>班级</tr>
        <tr>开班时间</tr>
        <tr>带班老师</tr>
        <tr>操作</tr>
        </thead>
        <tbody>
            <tr th:each="cb:${pageInfo.list}">
                <td th:text="${cb.name}"></td>
                <td th:text="${cb.birthday}"></td>
                <td th:text="${cb.teacherName}"></td>
                <td>
                    <a th:href="@{/Class/del(id=${cb.id})}">删除</a>
                    <a th:href="@{/Class/findById(id=${cb.id})}">修改</a>
                </td>
            </tr>
        </tbody>
    </table>
    <a th:each="i:${#numbers.sequence(1,pageInfo.pages)}"
       th:text="${i}"
       th:href="@{/Class/findAll(pageNO=${i})}">
    </a><br>
    <a href="/html/Class/add.html">添加</a>
</body>
</html>